Merged
Conversation
6257bb7 to
401ab8d
Compare
58aaa97 to
f609033
Compare
fix: move type: ignore[call-arg] to _get_api_list call site in to_markdown.py
fix: move type: ignore[call-arg] to _get_api_list call site in ai/to_markdown.py
fix: remove duplicate notification_url field in webhook response types
note: tests skipped due to pre-existing codegen bug
note: tests skipped due to pre-existing codegen bug
note: tests skipped due to pre-existing codegen bug
…ilures) These resources failed the pytest gate due to pre-existing codegen bugs: - workers: PydanticSchemaGenerationError for RunQueryParametersNeedleValue - registrar: Prism mock rejects test fixture domain with 422 - custom_pages: test_assets.py missing required zone_id argument Reverted to their origin/next versions per codegen-sync policy: resources that fail any validation gate are excluded from the sync.
…itrary_types_allowed The bare class caused PydanticSchemaGenerationError at import time, cascading across all workers sub-resource tests (1100+ failures).
…ryCustomEntry classes
feat: sync codegen changes from staging-next (2026-04-17)
…sly excluded for test failures
feat(workers,registrar,custom_pages): restore codegen updates previously excluded for test failures
a559a1e to
25fac8c
Compare
musa-cf
approved these changes
Apr 20, 2026
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated Release PR
v5.0.0-beta.2
Full diff:
v5.0.0-beta.1...v5.0.0-beta.2This release adds 163 new methods across 4 new top-level resources and numerous sub-resource
expansions, restructures the
api.mdsurface into per-resource files, and includes codegenupdates across all existing resources.
General Changes
Client-level
account_idandzone_idconfigurationYou can now set
account_idandzone_idonce on the client instead of passing them to everymethod call. When set, these values are used as defaults for all methods that accept them. You
can still override per-call by passing the parameter explicitly.
Both options also read from environment variables:
account_idfromCLOUDFLARE_ACCOUNT_IDzone_idfromCLOUDFLARE_ZONE_IDAll methods that previously required
account_idorzone_idas a positional/keyword argumentnow accept
Noneas a default and fall back to the client-level value. If neither is set, aValueErroris raised with a clear message.Breaking Changes
Restructured Resources
AISearch:
aisearch.instances.items(get,list) has been replaced by the newnamespace-based architecture under
aisearch.namespaces.instances.items(see New Resourcesbelow)
Registrar:
registrar.domains(get,list,update) has been replaced byregistrar.registrationswith expanded functionality includingcreate,edit,get,list,plus new
registrar.check,registrar.search,registrar.registration_status.get, andregistrar.update_status.getmethodsRemoved Methods
cloudforce_one.threat_events.deleteNew API Resources
Top-Level Resources
VulnerabilityScanner -- Full CRUD for vulnerability scanning
credential_sets--create,delete,edit,get,list,updatecredential_sets.credentials--create,delete,edit,get,list,updatescans--create,get,listtarget_environments--create,delete,edit,get,list,updateGoogleTagGateway -- Google Tag Gateway configuration
config--get,updateEmailSending -- Email sending with subdomain management
send,send_rawsubdomains--create,delete,get,listsubdomains.dns--getResourceTagging -- Resource tagging and key/value management
listaccount_tags--delete,get,updatezone_tags--delete,get,updatekeys--listvalues--listNew Sub-Resources on Existing Resources
AI Search (restructured) -- Expanded namespace-based architecture
aisearch.namespaces--create,delete,list,read,search,update,chat_completionsaisearch.namespaces.instances--create,list,read,search,stats,update,chat_completionsaisearch.namespaces.instances.items--chunks,create_or_update,delete,download,get,list,logs,sync,uploadaisearch.namespaces.instances.jobs--create,get,list,logs,updateAPI Gateway Labels -- Label management for API Gateway operations
api_gateway.labels--listapi_gateway.labels.managed--getapi_gateway.labels.managed.resources.operation--updateapi_gateway.labels.user--bulk_create,bulk_delete,delete,edit,get,updateapi_gateway.labels.user.resources.operation--updateapi_gateway.operations.labels--bulk_create,bulk_delete,bulk_update,create,delete,updateBrowser Rendering -- DevTools and crawl APIs
browser_rendering.crawl--create,delete,getbrowser_rendering.devtools.browser--connect,create,delete,launch,protocol,versionbrowser_rendering.devtools.browser.page--getbrowser_rendering.devtools.browser.targets--activate,create,get,listbrowser_rendering.devtools.session--get,listCustom Pages Assets -- Custom page asset management
custom_pages.assets--create,delete,get,list,updateACM Custom Trust Store -- Custom origin trust store
acm.custom_trust_store--create,delete,get,listWorkers Observability Destinations -- Log destinations for Workers observability
workers.observability.destinations--create,delete,list,updateRegistrar (expanded) -- Domain registration with full lifecycle management
registrar.registrations--create,edit,get,listregistrar.check,registrar.searchregistrar.registration_status--getregistrar.update_status--getZero Trust additions
zero_trust.access.users--create,delete,get,updatezero_trust.devices.ip_profiles--create,delete,get,list,updatezero_trust.dex.rules--create,delete,get,list,updatezero_trust.dlp.settings--delete,edit,get,updatezero_trust.gateway.pacfiles--create,delete,get,list,updatezero_trust.networks.subnets.warp--create,delete,edit,getzero_trust.tunnels.warp_connector.connections--getzero_trust.tunnels.warp_connector.connectors--getzero_trust.tunnels.warp_connector.failover--updateZones Environments -- Zone environment management
zones.environments--create,delete,edit,list,rollback,updateRadar additions
radar.agent_readiness--summaryradar.ai.markdown_for_agents--summary,timeseriesradar.entities.asns--botnet_threat_feedradar.post_quantum.origin--summary,timeseries_groupsradar.post_quantum.tls--supportBilling Usage -- PayGo billing usage
billing.usage--paygoEmail Security -- PhishGuard reporting
email_security.phishguard.reports--listBrand Protection -- v2 endpoints
brand_protection.v2additionsBug Fixes
model_rebuild()/update_forward_refs()calls forCustomProfileSharedEntryCustomEntryandIntegrationProfileSharedEntryCustomEntry, fixingpydantic v1 validation errors on DLP profile types.
RunQueryParametersNeedleValueaBaseModelwitharbitrary_types_allowedto prevent pydantic config errors.Internal
api.mdhas been restructured from a single monolithic file into per-resource files undersrc/cloudflare/resources/*/api.md. The rootapi.mdnow contains shared types and links toeach resource's documentation.
This pull request is managed by Stainless's GitHub App.
The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.
For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.
🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions